import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class View extends JFrame {
	BufferedImage image;
	BufferedImage srcimage;
	JPanel jp;
	ImageIcon icon;

	View(BufferedImage image) {

		int width = (int) Toolkit.getDefaultToolkit().getScreenSize()
				.getWidth();
		int height = (int) Toolkit.getDefaultToolkit().getScreenSize()
				.getHeight();
		this.image = image;
		icon = new ImageIcon(image);
		jp = new huabu(image);
		this.add(jp);
		this.setSize(width, height);
		this.setUndecorated(true);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
	}

}
